<div class="society">
    <div class="left">
        <div class="nav">
          <div class="nav-title">{{selectedMenu.menuName}}</div>
            <div class="navList">
                <ul>
                    <li ng-repeat="menu in subMenus" ng-click="selectSubMenu(menu.subMenuId)"><a href="">{{menu.subMenuName}}</a></li>
                </ul>
            </div>
        </div>
        <slider-charity></slider-charity>
        <bank-info></bank-info>
    </div>
    <div class="right">
        <div ng-if="itemIsMulti == 'Y' && !selectedContent">
            <div class="right-listTitle" ng-bind-html="locationStr"></div>
            <div class="right-list" ng-repeat=" _content in contentList" ng-click="selectSingleContent(_content.id)">
                <div class="list-left">
                    <div class="list-title"><a href="">{{_content.name}}</a></div>
                    <div class="list-time">{{updateAt | date:'yyyy-MM-dd HH:mm'}}</div>
                </div>
                <div class="list-img" ng-show="_content.coverUrl"><img ng-src="{{_content.coverUrl}}" alt=""></div>
            </div>
            <div class="entry">
                <ul>
                    <li><a href="" ng-click="toPreviousPage()">《上一页</a></li>&#8195;<li><a href="" ng-click="toNextPage()">下一页》</a></li>
                </ul>
            </div>

        </div>
        <!-- 只有单个内容或点击列表选择单个内容 -->
        <div ng-if="itemIsMulti == 'N' || selectedContent">
            <!--二级才显示导航栏面包屑-->
            <div  class="right-listTitle" ng-bind-html="locationStr"></div>
            <div ng-if="isSupportDonate == 'Y' ">
                <div class="donation-img"><img ng-src="{{ contentData.coverUrl ||'/web/images/society/pic_big.png'}}" style="width:100%; height: 100%" alt=""></div>
                <div class="wrapper">
                    <div class="content">
                        <div style="border-bottom: 1px solid #e5e5e5; margin-top: 10px; margin-bottom: 10px;">项目说明</div>
                        <div class="project" >
                            <div  ng-bind-html="contentData.content"></div>
                        </div>

                        <div style="border-bottom: 1px solid #e5e5e5; margin-top: 20px; margin-bottom: 10px;">我要捐赠</div>
                        <div class="hot" >
                            <form action="/pay/unifiedOrder" method="post" >
                                <input hidden name="projectId" ng-value="contentData.id">
                                <input hidden name="projectName" ng-value="contentData.name">
                                <p>捐款金额：</p>
                                <a href="" class="money" ng-class="donate.moneyIndex == 1 ?'active' :'' " ng-click="selectMoney(1)">50元</a>
                                <a href="" class="money" ng-class="donate.moneyIndex == 2 ?'active' :'' " ng-click="selectMoney(2)">100元</a>
                                <a href="" class="money" ng-class="donate.moneyIndex == 3 ?'active' :'' " ng-click="selectMoney(3)">200元</a>
                                <a  class="other" ng-class="donate.moneyIndex == 4 ?'active' :'' " ng-click="selectMoney(4)"><span>其他</span> <input type="text"  ng-model="donate.customMoney"/></a>

                                <input hidden name="totalFee" ng-value="donate.totalFee">

                                <p>支付平台</p>
                                <div class="flat">
                                    <a href="" class="pay" ng-click="selectPayType('WX')" ng-class="donate.payType == 'WX' ?'active' :'' "><img src="/web/images/society/button_wechat.png" alt=""></a>
                                    <a href="" class="pay" ng-click="selectPayType('ALi')" ng-class="donate.payType == 'ALi' ?'active' :'' "><img src="/web/images/society/button_alipay.png" alt=""></a>
                                </div>
                                <input hidden name="payType" ng-value="donate.payType">
                                <p>个人信息</p>
                                <div class="warn">(请提供真实的个人信息以便我们与您联系，所收集的个人资料将保密处理，仅作为与您通讯或填写收据只用)</div>
                                <div class="info">
                                    <span>姓名</span><input type="text" name="userName" ng-model="donate.userName" class="input"><br>
                                    <div class="sex">
                                        <input name="userType" type="radio" value=0 ng-model="donate.userType" /><span>男士</span>
                                        <input name="userType" type="radio" value=1 ng-model="donate.userType" /><span>女士</span>
                                        <input name="userType" type="radio" value=2 ng-model="donate.userType" /><span>企业</span>
                                    </div>
                                    <div ng-if="donate.userType == 2 ">
                                        <span>企业</span><input type="text" name="userCompany" ng-model="donate.userCompany" class="input"><br><br>
                                    </div>
                                    <span>手机</span><input type="text" name="userPhoneNumber" ng-model="donate.userPhoneNumber"  class="input"><br><br>
                                    <span>邮箱</span><input type="email" name="userEmail" ng-model="donate.userEmail"  class="input"><br><br>
                                    <span>地址</span><input type="text"  name="address" class="input"><br><br>
                                    <span>邮编</span><input type="text"  name="postCode" class="input"><br><br>
                                </div>
                                <div class="agree">
                                    <span class="one">是否愿意公布捐赠人信息</span>
                                    <input name="publicFlag" type="radio" value=1  ng-model="donate.publicFlag" /><span class="two">是</span>
                                    <input name="publicFlag" type="radio" value=0 ng-model="donate.publicFlag"  /><span >否</span>
                                </div>
                                <div class="enter"><span>{{donate.errorMessage}}</span><input type="submit" value="确&#8195;认" ng-click="toDonate($event)"></div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>

            <div ng-if="isSupportDonate == 'N' ">
                <div class="right_title">{{contentData.name}}</div>
                <div class="right_content" ng-bind-html="contentData.content">
                </div>

                <div ng-if="isSupportComment == 'Y'">
                    <div class="message">
                        <div class="message-title">
                            发表留言
                        </div>
                        <div class="message-input">
                            <span>标题</span> <input type="text" name="" ng-model="helpMessage.title" ><br><br>
                            <span>留言人</span> <input type="text" name="" ng-model="helpMessage.userName" style="margin-left: 66px"><br><br>
                            <span>电话号码</span> <input type="tel" name="" ng-model="helpMessage.contact" style="margin-left: 52px"><br><br>
                            <textarea name="" id="" cols="30" rows="4" ng-model="helpMessage.message"></textarea>

                        </div>
                        <div class="submit">
                            <span>{{helpMessage.errorMessage}}</span>
                            <a href="" ng-click="sendMessage(contentData.id)">确认发送</a>
                        </div>

                    </div>
                </div>

            </div>

        </div>

    </div>
</div>